﻿@model DCH.Models.Register

@{
    ViewBag.Title = "Register";

}

<div class="clear"></div>
<!-- Breadcrumb SecTion -->
<div class="breadcrumb-sec ">

    <!-- Container -->
    <div class="absolute-sec">
        <div class="container">
            <!-- PageInfo -->
            <div class="pageinfo page-title-align-left">
                <h1 style="color: #fff !important">Register</h1>
                <h5 class="entryFee">
                    Entry fee for Team - 11,000 Rs.<br />
                    Entry fee for Individual Player - 1,500 Rs. <br />
                    Last Date of registration 10th Novermber, 2015.
                </h5>
            </div>

        </div>
        <!-- Container -->
    </div>
</div>
<div class="clear"></div>
<!-- Breadcrumb SecTion -->
<!-- Main Content Section -->
<div id="main-content">
    <!-- Main Section Start -->
    <div class="main-section">
        <div class="container">


            <div class="">
                <section class="page-section">
                    <div class="container">
                        <div class="row">
                            <div class="col-md-12 rich_editor_text">

                                <p><span style="color: green">@TempData["successMessage"]</span></p>
                                <p><span style="color:red">@TempData["ErrorMessage"]</span></p>
                                <div id="__if72ru4sdfsdfruh7fewui_once" style="display: none;"></div>
                                <div id="__hggasdgjhsagd_once" style="display: none;"></div>
                            </div>
                        </div>
                    </div>
                </section>
                <!-- Page Section -->
                <section class="page-section  " style="margin-top: -60px; margin-bottom: 0px; border-top: 0px #e0e0e0 solid; border-bottom: 0px #e0e0e0 solid;">
                    <!-- Container Start here -->
                    <div class="container">
                        <!-- Row Start -->
                        <div class="row">
                            <div class="section-fullwidth">

                                <div class="element-size-100">
                                    <div class="col-md-12" style="height: 10px"></div>
                                </div>

                                <div class="element-size-100">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="IndividualPlayer clearfix">
                                                <div class="cs-section-title">
                                                    <h2 class="">Individual Player</h2>
                                                </div>
                                                <div class="  cs_form_styling">
                                                    <div class="form-style" id="contact_formEuQ">
                                                        @using (Html.BeginForm("Create", "Register", FormMethod.Post, new { area = "admin" }))
                                                        {
                                                            <div class="row">
                                                                <div class="col-md-4" style="margin-bottom: 0px;">
                                                                    <label>Player Name <span style="color: red;">*</span></label>
                                                                    @Html.TextBoxFor(model => model.PlayerName, new { @placeholder = "Player Name", required = "required" })
                                                                </div>
                                                                <div class="col-md-4" style="margin-bottom: 0px;">
                                                                    <label>Player Skill <span style="color: red;">*</span></label>
                                                                    @Html.TextBoxFor(model => model.PlayerSkill, new { @placeholder = "Player Skill", required = "required" })
                                                                </div>

                                                                <div class="col-md-4" style="margin-bottom: 0px;">
                                                                    <label>Phone Number <span style="color: red;">*</span></label>
                                                                    @Html.TextBoxFor(model => model.Phone, new { @placeholder = "Phone Number", required = "required", pattern = "[123456789][0-9]{9}" })
                                                                </div>
                                                                <div class="col-md-4" style="margin-bottom: 0px;">
                                                                    <label>Email <span style="color: red;">*</span></label>
                                                                    @Html.TextBoxFor(model => model.Email, new { @placeholder = "Email", required = "required", type = "Email" })
                                                                </div>

                                                                <div class="col-md-4" style="margin-bottom: 0px;">
                                                                    <label>State <span style="color: red;">*</span></label>
                                                                    @Html.DropDownListFor(model => model.State, ViewBag.getState as IEnumerable<SelectListItem>)
                                                                </div>
                                                                <div class="col-md-4" style="margin-bottom: 0px;">
                                                                    <label>City <span style="color: red;">*</span></label>
                                                                    @Html.TextBoxFor(model => model.City, new { @placeholder = "City", required = "required" })
                                                                </div>
                                                                <div class="col-md-12" style="margin-bottom: 0px;">
                                                                    @Html.CheckBox("Condition", false, new { @id = "chkcondition",style="width: auto; margin-right: 5px;" })<a href="@Url.Action("Terms", "Home",new { area=""})">Term and condition</a>
                                                                </div>
                                                            </div>

                                                            <input style="margin-bottom: 0px;" type="submit" value="Register Individual Player" onclick="javascript: return AcceptTermAndcondition();" class="custom-btn cs-bg-color" id="submit_btnEuQ">
                                                        }
                                                        <div id="loading_divEuQ"></div>
                                                        <div id="messageEuQ" style="display: none;"></div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <div class="cs-section-title">
                                                <h2 class="">Register Your Team</h2>
                                            </div>
                                            <div class="  cs_form_styling">
                                                <div class="form-style" id="contact_formEuQ">
                                                    @using (Html.BeginForm("Create", "Register", FormMethod.Post, new { area = "admin" }))
                                                    {
                                                        @Html.ValidationSummary(true)

                                                        <div class="row">
                                                            <div class="col-md-4" style="margin-bottom: 0px;">
                                                                <label>State <span style="color: red;">*</span></label>
                                                                @Html.DropDownListFor(model => model.State, ViewBag.getState as IEnumerable<SelectListItem>)
                                                            </div>
                                                            <div class="col-md-4" style="margin-bottom: 0px;">
                                                                <label>City <span style="color: red;">*</span></label>
                                                                @Html.TextBoxFor(model => model.City, new { @placeholder = "City", required = "required" })
                                                            </div>
                                                            <div class="col-md-4" style="margin-bottom: 0px;">
                                                                <label>Club name <span style="color: red;">*</span></label>
                                                                @Html.TextBoxFor(model => model.ClubName, new { @placeholder = "Club name", required = "required" })
                                                            </div>
                                                            <div class="col-md-4" style="margin-bottom: 0px;">
                                                                <label>Captain name <span style="color: red;">*</span></label>
                                                                @Html.TextBoxFor(model => model.CaptainName, new { @placeholder = "Captain name", required = "required" })
                                                            </div>
                                                            <div class="col-md-4" style="margin-bottom: 0px;">
                                                                <label>Phone Number <span style="color: red;">*</span></label>
                                                                @Html.TextBoxFor(model => model.Phone, new { @placeholder = "Phone Number", required = "required", pattern = "[123456789][0-9]{9}" })
                                                            </div>
                                                            <div class="col-md-4" style="margin-bottom: 0px;">
                                                                <label>Email <span style="color: red;">*</span></label>
                                                                @Html.TextBoxFor(model => model.Email, new { @placeholder = "Email", required = "required", type = "Email" })
                                                            </div>
                                                        </div>
                                                        
                                                        <table  class="table tablePlayes" style="margin-top: 20px;">
                                                            <thead>
                                                                <tr>
                                                                <th>
                                                                    &nbsp;
                                                                </th>
                                                                        <th>
                                                                        Player Name
                                                                    </th>
                                                                    <th>
                                                                        Player Phone Number
                                                                    </th>
                                                                    <th>
                                                                        Player City
                                                                    </th>
                                                                </tr>
                                                            </thead>
                                                            <tbody>
                                                                <tr class="SeparaterBg Separaterlayer">
                                                                    <td>
                                                                         <label>Player 1 </label>
                                                                    </td>
                                                                    <td>
                                                                        @Html.TextBoxFor(model => model.Player1Name, new { @placeholder = "Player Name"})
                                                                    </td>
                                                                    <td>
                                                                        @Html.TextBoxFor(model => model.Player1Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}" })
                                                                    </td>
                                                                    <td>
                                                                        @Html.TextBoxFor(model => model.Player1City, new { @placeholder = "Player City" })
                                                                    </td>
                                                                </tr>
                                                                <tr class="Separaterlayer">
                                                                    <td>
                                                                        <label>Player 2 </label>
                                                                    </td>
                                                                    <td>
                                                                         @Html.TextBoxFor(model => model.Player2Name, new { @placeholder = "Player Name"})
                                                                    </td>
                                                                    <td>
                                                                         @Html.TextBoxFor(model => model.Player2Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}"})
                                                                    </td>
                                                                    <td>
                                                                         @Html.TextBoxFor(model => model.Player2City, new { @placeholder = "Player City" })
                                                                    </td>
                                                                </tr>
                                                                <tr class="SeparaterBg Separaterlayer">
                                                                    <td>
                                                                         <label>Player 3 </label>
                                                                    </td>
                                                                    <td>
                                                                        @Html.TextBoxFor(model => model.Player3Name, new { @placeholder = "Player Name"})
                                                                    </td>
                                                                    <td>
                                                                        @Html.TextBoxFor(model => model.Player3Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}" })
                                                                    </td>
                                                                    <td>
                                                                        @Html.TextBoxFor(model => model.Player3City, new { @placeholder = "Player City" })
                                                                    </td>
                                                                </tr>
                                                                  <tr class="Separaterlayer">
                                                                      <td>
                                                                          <label>Player 4 </label>
                                                                      </td>
                                                                      <td>
                                                                           @Html.TextBoxFor(model => model.Player4Name, new { @placeholder = "Player Name"})
                                                                      </td>
                                                                      <td>
                                                                           @Html.TextBoxFor(model => model.Player4Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}"})
                                                                      </td>
                                                                      <td>
                                                                            @Html.TextBoxFor(model => model.Player4City, new { @placeholder = "Player City" })
                                                                      </td>

                                                                  </tr>
                                                                 <tr class="SeparaterBg Separaterlayer">
                                                                     <td>
                                                                         <label>Player 5 </label>
                                                                     </td>
                                                                     <td>
                                                                          @Html.TextBoxFor(model => model.Player5Name, new { @placeholder = "Player Name"})
                                                                     </td>
                                                                     <td>
                                                                          @Html.TextBoxFor(model => model.Player5Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}" })
                                                                     </td>
                                                                     <td>
                                                                          @Html.TextBoxFor(model => model.Player5City, new { @placeholder = "Player City" })
                                                                     </td>
                                                                 </tr>
                                                                  <tr class="Separaterlayer">
                                                                      <td>
                                                                          <label>Player 6 </label>
                                                                      </td>
                                                                      <td>
                                                                          @Html.TextBoxFor(model => model.Player6Name, new { @placeholder = "Player Name"})
                                                                      </td>
                                                                      <td>
                                                                          @Html.TextBoxFor(model => model.Player6Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}" })
                                                                      </td>
                                                                      <td>
                                                                          @Html.TextBoxFor(model => model.Player6City, new { @placeholder = "Player City" })
                                                                      </td>
                                                                  </tr>
                                                                 <tr class="SeparaterBg Separaterlayer">
                                                                     <td>
                                                                          <label>Player 7 </label>
                                                                     </td>
                                                                     <td>
                                                                          @Html.TextBoxFor(model => model.Player7Name, new { @placeholder = "Player Name"})
                                                                     </td>
                                                                     <td>
                                                                          @Html.TextBoxFor(model => model.Player7Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}" })
                                                                     </td>
                                                                     <td>
                                                                         @Html.TextBoxFor(model => model.Player7City, new { @placeholder = "Player City" })
                                                                     </td>
                                                                 </tr>
                                                                <tr class="Separaterlayer">
                                                                    <td>
                                                                         <label>Player 8 </label>
                                                                    </td>
                                                                    <td>
                                                                         @Html.TextBoxFor(model => model.Player8Name, new { @placeholder = "Player Name"})
                                                                    </td>
                                                                    <td>
                                                                        @Html.TextBoxFor(model => model.Player8Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}"})
                                                                    </td>
                                                                    <td>
                                                                        @Html.TextBoxFor(model => model.Player8City, new { @placeholder = "Player City" })
                                                                    </td>
                                                                </tr>
                                                                 <tr class="SeparaterBg Separaterlayer">
                                                                     <td>
                                                                         <label>Player 9 </label>
                                                                     </td>
                                                                     <td>
                                                                         @Html.TextBoxFor(model => model.Player9Name, new { @placeholder = "Player Name"})
                                                                     </td>
                                                                     <td>
                                                                          @Html.TextBoxFor(model => model.Player9Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}"})
                                                                     </td>
                                                                     <td>
                                                                          @Html.TextBoxFor(model => model.Player9City, new { @placeholder = "Player City" })
                                                                     </td>
                                                                 </tr>
                                                                 <tr class="Separaterlayer">
                                                                     <td>
                                                                         <label>Player 10 </label>
                                                                     </td>
                                                                     <td>
                                                                          @Html.TextBoxFor(model => model.Player10Name, new { @placeholder = "Player Name"})
                                                                     </td>
                                                                     <td>
                                                                          @Html.TextBoxFor(model => model.Player10Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}" })
                                                                     </td>
                                                                     <td>
                                                                          @Html.TextBoxFor(model => model.Player10City, new { @placeholder = "Player City" })
                                                                     </td>
                                                                 </tr>
                                                                 <tr class="SeparaterBg Separaterlayer">
                                                                     <td>
                                                                         <label>Player 11 </label>
                                                                     </td>
                                                                     <td>
                                                                          @Html.TextBoxFor(model => model.Player11Name, new { @placeholder = "Player Name"})
                                                                     </td>
                                                                     <td>
                                                                         @Html.TextBoxFor(model => model.Player11Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}" })
                                                                     </td>
                                                                     <td>
                                                                           @Html.TextBoxFor(model => model.Player11City, new { @placeholder = "Player City" })
                                                                     </td>
                                                                 </tr>
                                                                <tr class="Separaterlayer">
                                                                    <td>
                                                                        <label>Player 12 </label>
                                                                    </td>
                                                                     <td>
                                                                         @Html.TextBoxFor(model => model.Player12Name, new { @placeholder = "Player Name"})
                                                                    </td>
                                                                     <td>
                                                                          @Html.TextBoxFor(model => model.Player12Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}" })
                                                                    </td>
                                                                     <td>
                                                                         @Html.TextBoxFor(model => model.Player12City, new { @placeholder = "Player City" })
                                                                    </td>
                                                                </tr>
                                                                  <tr class="SeparaterBg Separaterlayer">
                                                                      <td>
                                                                          <label>Player 13 </label>
                                                                      </td>
                                                                      <td>
                                                                          @Html.TextBoxFor(model => model.Player13Name, new { @placeholder = "Player Name"})
                                                                      </td>
                                                                      <td>
                                                                          @Html.TextBoxFor(model => model.Player13Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}"})
                                                                      </td>
                                                                      <td>
                                                                          @Html.TextBoxFor(model => model.Player13City, new { @placeholder = "Player City" })
                                                                      </td>
                                                                      
                                                                  </tr>
                                                                 <tr class="Separaterlayer">
                                                                     <td>
                                                                         <label>Player 14 </label>
                                                                     </td>
                                                                     <td>
                                                                         @Html.TextBoxFor(model => model.Player14Name, new { @placeholder = "Player Name"})
                                                                     </td>
                                                                     <td>
                                                                         @Html.TextBoxFor(model => model.Player14Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}" })
                                                                     </td>
                                                                     <td>
                                                                          @Html.TextBoxFor(model => model.Player14City, new { @placeholder = "Player City"})
                                                                     </td>
                                                                 </tr>
                                                                <tr  class="SeparaterBg Separaterlayer">
                                                                    <td>
                                                                        <label>Player 15 </label>
                                                                    </td>
                                                                    <td>
                                                                        @Html.TextBoxFor(model => model.Player15Name, new { @placeholder = "Player Name"})
                                                                    </td>
                                                                    <td>
                                                                        @Html.TextBoxFor(model => model.Player15Phone, new { @placeholder = "Player Phone Number", pattern = "[123456789][0-9]{9}" })
                                                                    </td>
                                                                    <td>
                                                                         @Html.TextBoxFor(model => model.Player15City, new { @placeholder = "Player City"})
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                       @Html.CheckBox("Condition", false, new { @id = "chkconditionTeam",style="width: auto; margin-right: 5px;" })<a href="@Url.Action("Terms", "Home",new { area=""})">Term and condition</a>    
                                                        <input style="float:right;" type="submit" value="Register Your Team" onclick="javascript: return AcceptTermAndconditionTeam();" class="custom-btn cs-bg-color" id="submit_btnEuQ">
                                                       
                                                        
                                                    }
                                                    <div id="loading_divEuQ"></div>
                                                    <div id="messageEuQ" style="display: none;"></div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </section>

            </div>

        </div>

    </div>
</div>
<!-- Main Content Section -->

@*<div>
    <select id="method">
        <option value="get">GET</option>
        <option value="post">POST</option>
        <option value="put">PUT</option>
    </select>
    <input type="button" value="Try it" onclick="sendRequest()" />
    <span id='value1'>(Result)</span>
</div>*@


@*<script>
    // TODO: Replace with the URL of your WebService app
    var serviceUrl = 'http://localhost:4724/api/values';

    function sendRequest() {
        var method = jQuery('#method').val();

        jQuery.ajax({
            type: method,
            url: serviceUrl
        }).done(function (data) {
            jQuery('#value1').text(data);
        }).error(function (jqXHR, textStatus, errorThrown) {
            jQuery('#value1').text(jqXHR.responseText || textStatus);
        });
    }
</script>*@


<script language="javascript" type="text/javascript">
    function AcceptTermAndcondition() {

        if (jQuery("#chkcondition").is(':checked')) {
            return true;
        }
        else {
            alert("Please accept term and condition");
            return false;
        }
    }
    function AcceptTermAndconditionTeam() {

        if (jQuery("#chkconditionTeam").is(':checked')) {
            return true;
        }
        else {
            alert("Please accept term and condition");
            return false;
        }
    }
</script>
